package com.neusoft.boot_ssm_crud.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.format.FormatterRegistry;
import org.springframework.http.converter.HttpMessageConverter;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.ViewResolverRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

import java.util.List;

@Configuration
public class WebMvc_Config implements WebMvcConfigurer {

    //格式转换器
    @Override
    public void addFormatters(FormatterRegistry registry) {

    }

    //拦截器
    @Override
    public void addInterceptors(InterceptorRegistry registry) {

    }

    @Override
    public void addViewControllers(ViewControllerRegistry registry) {

    }

    //试图渲染器
    @Override
    public void configureViewResolvers(ViewResolverRegistry registry) {

    }

    //消息转换器
    @Override
    public void configureMessageConverters(List<HttpMessageConverter<?>> converters) {

    }
}
